package com.geekhome.player;
import	java.util.logging.Level;


import com.geekhome.player.domain.dao.CharacterConfigRepository;
import com.geekhome.player.domain.entity.CharacterConfigDO;
import org.apache.commons.collections.map.HashedMap;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Copyright © 2018年 ziniublog. All rights reserved.
 *
 * @author 临江仙 hzqiuxm@163.com
 * 初始化职业配置信息,只初始化一遍
 * @date 2018/12/27 20:10
 * @Since 1.0.0
 */
@RunWith(SpringRunner.class)
@SpringBootTest
@Ignore
public class InitCharacterConfig {

    @Autowired
    private CharacterConfigRepository characterConfigRepository;


    @Test
    public void initCharacterConfig(){

        //法师
        List<CharacterConfigDO> fsConfig = getFsConfig();
        characterConfigRepository.batchSave(fsConfig);

        //战士
        List<CharacterConfigDO> zsConfig = getZsConfig();
        characterConfigRepository.batchSave(zsConfig);

        //拳师
        List<CharacterConfigDO> gdjConfig = getGdjConfig();
        characterConfigRepository.batchSave(gdjConfig);

        //盗贼
        List<CharacterConfigDO> dzConfig = getDZConfig();
        characterConfigRepository.batchSave(dzConfig);

        //工匠
        List<CharacterConfigDO> gjConfig = getGjConfig();
        characterConfigRepository.batchSave(gjConfig);

        //召唤师
        List<CharacterConfigDO> zhsConfig = getZhsConfig();
        characterConfigRepository.batchSave(zhsConfig);

        //剑士
        List<CharacterConfigDO> jsConfig = getJsConfig();
        characterConfigRepository.batchSave(jsConfig);

        //牧师
        List<CharacterConfigDO> msConfig = getMsConfig();
        characterConfigRepository.batchSave(msConfig);

        //血族
        List<CharacterConfigDO> xzConfig = getXzConfig();
        characterConfigRepository.batchSave(xzConfig);
    }


    /**
     * 法师系职业初始化配置
     * @return
     */
    public List<CharacterConfigDO> getFsConfig(){

        List<CharacterConfigDO> configList = new ArrayList<>();

        Map<Integer,String> cNameMaps = new HashedMap();
        Map<Integer,String> gNameMaps = new HashedMap();

        cNameMaps.put(1,"法师学徒");
        cNameMaps.put(2,"法师学徒");
        cNameMaps.put(3,"法师学徒");
        cNameMaps.put(4,"流浪法师");
        cNameMaps.put(5,"流浪法师");
        cNameMaps.put(6,"流浪法师");
        cNameMaps.put(7,"魔法师");
        cNameMaps.put(8,"魔法师");
        cNameMaps.put(9,"魔法师");
        cNameMaps.put(10,"魔导师");
        cNameMaps.put(11,"魔导师");
        cNameMaps.put(12,"魔导师");
        cNameMaps.put(13,"圣魔导");
        cNameMaps.put(14,"圣魔导");
        cNameMaps.put(15,"圣魔导");
        cNameMaps.put(16,"圣魔大法师");
        cNameMaps.put(17,"圣魔大法师");
        cNameMaps.put(18,"圣魔大法师");

        gNameMaps.put(1,"前端实习生");
        gNameMaps.put(2,"前端实习生");
        gNameMaps.put(3,"前端实习生");
        gNameMaps.put(4,"初级前端工程师");
        gNameMaps.put(5,"初级前端工程师");
        gNameMaps.put(6,"初级前端工程师");
        gNameMaps.put(7,"中级前端工程师");
        gNameMaps.put(8,"中级前端工程师");
        gNameMaps.put(9,"中级前端工程师");
        gNameMaps.put(10,"高级前端工程师");
        gNameMaps.put(11,"高级前端工程师");
        gNameMaps.put(12,"高级前端工程师");
        gNameMaps.put(13,"前端技术经理");
        gNameMaps.put(14,"前端技术经理");
        gNameMaps.put(15,"前端技术经理");
        gNameMaps.put(16,"前端技术总监");
        gNameMaps.put(17,"前端技术总监");
        gNameMaps.put(18,"前端技术总监");

        for (int i = 1; i <= 18; i++) {

            CharacterConfigDO characterConfigDO = new CharacterConfigDO();
            int level = (i%3 == 0)? 3: i%3;

            characterConfigDO.setOrderId(i);
            characterConfigDO.setLevel(level);
            characterConfigDO.setCharacterCode("FS");
            characterConfigDO.setCharacterDes("法师系，对应前端工程师");
            characterConfigDO.setStatus(1);
            characterConfigDO.setCharacterName(cNameMaps.get(i));
            characterConfigDO.setEngineerName(gNameMaps.get(i));
            characterConfigDO.setExp(1000l*i);
            characterConfigDO.setCharacterIcon("fs"+ level);

            configList.add(characterConfigDO);
        }

        return configList;

    }


    /**
     * 战士系职业初始化配置
     * @return
     */
    public List<CharacterConfigDO> getZsConfig(){

        List<CharacterConfigDO> configList = new ArrayList<>();

        Map<Integer,String> cNameMaps = new HashedMap();
        Map<Integer,String> gNameMaps = new HashedMap();

        cNameMaps.put(1,"战士学徒");
        cNameMaps.put(2,"战士学徒");
        cNameMaps.put(3,"战士学徒");
        cNameMaps.put(4,"盾战士");
        cNameMaps.put(5,"盾战士");
        cNameMaps.put(6,"盾战士");
        cNameMaps.put(7,"狂战士");
        cNameMaps.put(8,"狂战士");
        cNameMaps.put(9,"狂战士");
        cNameMaps.put(10,"圣战士");
        cNameMaps.put(11,"圣战士");
        cNameMaps.put(12,"圣战士");
        cNameMaps.put(13,"骑士");
        cNameMaps.put(14,"骑士");
        cNameMaps.put(15,"骑士");
        cNameMaps.put(16,"圣骑士");
        cNameMaps.put(17,"圣骑士");
        cNameMaps.put(18,"圣骑士");

        gNameMaps.put(1,"后端实习生");
        gNameMaps.put(2,"后端实习生");
        gNameMaps.put(3,"后端实习生");
        gNameMaps.put(4,"初级后端工程师");
        gNameMaps.put(5,"初级后端工程师");
        gNameMaps.put(6,"初级后端工程师");
        gNameMaps.put(7,"中级后端工程师");
        gNameMaps.put(8,"中级后端工程师");
        gNameMaps.put(9,"中级后端工程师");
        gNameMaps.put(10,"高级后端工程师");
        gNameMaps.put(11,"高级后端工程师");
        gNameMaps.put(12,"高级后端工程师");
        gNameMaps.put(13,"后端技术经理");
        gNameMaps.put(14,"后端技术经理");
        gNameMaps.put(15,"后端技术经理");
        gNameMaps.put(16,"后端技术总监");
        gNameMaps.put(17,"后端技术总监");
        gNameMaps.put(18,"后端技术总监");

        for (int i = 1; i <= 18; i++) {

            CharacterConfigDO characterConfigDO = new CharacterConfigDO();

            int level = (i%3 == 0)? 3: i%3;
            characterConfigDO.setOrderId(i);
            characterConfigDO.setLevel(level);
            characterConfigDO.setCharacterCode("ZS");
            characterConfigDO.setCharacterDes("战士系，对应后端工程师");
            characterConfigDO.setStatus(1);
            characterConfigDO.setCharacterName(cNameMaps.get(i));
            characterConfigDO.setEngineerName(gNameMaps.get(i));
            characterConfigDO.setExp(1000l*i);
            characterConfigDO.setCharacterIcon("zs"+ level);

            configList.add(characterConfigDO);
        }

        return configList;

    }

    /**
     * 格斗家系职业初始化配置
     * @return
     */
    public List<CharacterConfigDO> getGdjConfig(){

        List<CharacterConfigDO> configList = new ArrayList<>();

        Map<Integer,String> cNameMaps = new HashedMap();
        Map<Integer,String> gNameMaps = new HashedMap();

        cNameMaps.put(1,"拳师学徒");
        cNameMaps.put(2,"拳师学徒");
        cNameMaps.put(3,"拳师学徒");
        cNameMaps.put(4,"格斗家");
        cNameMaps.put(5,"格斗家");
        cNameMaps.put(6,"格斗家");
        cNameMaps.put(7,"拳王");
        cNameMaps.put(8,"拳王");
        cNameMaps.put(9,"拳王");
        cNameMaps.put(10,"气功师");
        cNameMaps.put(11,"气功师");
        cNameMaps.put(12,"气功师");
        cNameMaps.put(13,"拳宗");
        cNameMaps.put(14,"拳宗");
        cNameMaps.put(15,"拳宗");
        cNameMaps.put(16,"拳皇");
        cNameMaps.put(17,"拳皇");
        cNameMaps.put(18,"拳皇");

        gNameMaps.put(1,"测试实习生");
        gNameMaps.put(2,"测试实习生");
        gNameMaps.put(3,"测试实习生");
        gNameMaps.put(4,"初级测试工程师");
        gNameMaps.put(5,"初级测试工程师");
        gNameMaps.put(6,"初级测试工程师");
        gNameMaps.put(7,"中级测试工程师");
        gNameMaps.put(8,"中级测试工程师");
        gNameMaps.put(9,"中级测试工程师");
        gNameMaps.put(10,"高级测试工程师");
        gNameMaps.put(11,"高级测试工程师");
        gNameMaps.put(12,"高级测试工程师");
        gNameMaps.put(13,"测试技术经理");
        gNameMaps.put(14,"测试技术经理");
        gNameMaps.put(15,"测试技术经理");
        gNameMaps.put(16,"测试技术总监");
        gNameMaps.put(17,"测试技术总监");
        gNameMaps.put(18,"测试技术总监");

        for (int i = 1; i <= 18; i++) {

            CharacterConfigDO characterConfigDO = new CharacterConfigDO();
            int level = (i%3 == 0)? 3: i%3;

            characterConfigDO.setOrderId(i);
            characterConfigDO.setLevel(level);
            characterConfigDO.setCharacterCode("QS");
            characterConfigDO.setCharacterDes("拳师系，对应测试工程师");
            characterConfigDO.setStatus(1);
            characterConfigDO.setCharacterName(cNameMaps.get(i));
            characterConfigDO.setEngineerName(gNameMaps.get(i));
            characterConfigDO.setExp(1000l*i);
            characterConfigDO.setCharacterIcon("qs"+level);

            configList.add(characterConfigDO);
        }

        return configList;

    }

    /**
     * 盗贼系职业初始化配置
     * @return
     */
    public List<CharacterConfigDO> getDZConfig(){

        List<CharacterConfigDO> configList = new ArrayList<>();

        Map<Integer,String> cNameMaps = new HashedMap();
        Map<Integer,String> gNameMaps = new HashedMap();

        cNameMaps.put(1,"盗贼学徒");
        cNameMaps.put(2,"盗贼学徒");
        cNameMaps.put(3,"盗贼学徒");
        cNameMaps.put(4,"暗杀者");
        cNameMaps.put(5,"暗杀者");
        cNameMaps.put(6,"暗杀者");
        cNameMaps.put(7,"绿林好汉");
        cNameMaps.put(8,"绿林好汉");
        cNameMaps.put(9,"绿林好汉");
        cNameMaps.put(10,"赏金猎人");
        cNameMaps.put(11,"赏金猎人");
        cNameMaps.put(12,"赏金猎人");
        cNameMaps.put(13,"游侠");
        cNameMaps.put(14,"游侠");
        cNameMaps.put(15,"游侠");
        cNameMaps.put(16,"天诛");
        cNameMaps.put(17,"天诛");
        cNameMaps.put(18,"天诛");

        gNameMaps.put(1,"测试实习生");
        gNameMaps.put(2,"测试实习生");
        gNameMaps.put(3,"测试实习生");
        gNameMaps.put(4,"初级移动端工程师");
        gNameMaps.put(5,"初级移动端工程师");
        gNameMaps.put(6,"初级移动端工程师");
        gNameMaps.put(7,"中级移动端工程师");
        gNameMaps.put(8,"中级移动端工程师");
        gNameMaps.put(9,"中级移动端工程师");
        gNameMaps.put(10,"高级移动端工程师");
        gNameMaps.put(11,"高级移动端工程师");
        gNameMaps.put(12,"高级移动端工程师");
        gNameMaps.put(13,"移动端技术经理");
        gNameMaps.put(14,"移动端技术经理");
        gNameMaps.put(15,"移动端技术经理");
        gNameMaps.put(16,"移动端技术总监");
        gNameMaps.put(17,"移动端技术总监");
        gNameMaps.put(18,"移动端技术总监");

        for (int i = 1; i <= 18; i++) {

            CharacterConfigDO characterConfigDO = new CharacterConfigDO();
            int level = (i%3 == 0)? 3: i%3;

            characterConfigDO.setOrderId(i);
            characterConfigDO.setLevel(level);
            characterConfigDO.setCharacterCode("DZ");
            characterConfigDO.setCharacterDes("盗贼系，对应移动端工程师");
            characterConfigDO.setStatus(1);
            characterConfigDO.setCharacterName(cNameMaps.get(i));
            characterConfigDO.setEngineerName(gNameMaps.get(i));
            characterConfigDO.setExp(1000l*i);
            characterConfigDO.setCharacterIcon("dz"+level);

            configList.add(characterConfigDO);
        }

        return configList;

    }

    /**
     * 牧师系职业初始化配置
     * @return
     */
    public List<CharacterConfigDO> getMsConfig(){

        List<CharacterConfigDO> configList = new ArrayList<>();

        Map<Integer,String> cNameMaps = new HashedMap();
        Map<Integer,String> gNameMaps = new HashedMap();
        cNameMaps.put(1,"牧师学徒");
        cNameMaps.put(2,"牧师学徒");
        cNameMaps.put(3,"牧师学徒");
        cNameMaps.put(4,"治愈者");
        cNameMaps.put(5,"治愈者");
        cNameMaps.put(6,"治愈者");
        cNameMaps.put(7,"济世者");
        cNameMaps.put(8,"济世者");
        cNameMaps.put(9,"济世者");
        cNameMaps.put(10,"大贤国手");
        cNameMaps.put(11,"大贤国手");
        cNameMaps.put(12,"大贤国手");
        cNameMaps.put(13,"悬壶医尊");
        cNameMaps.put(14,"悬壶医尊");
        cNameMaps.put(15,"悬壶医尊");
        cNameMaps.put(16,"济世医圣");
        cNameMaps.put(17,"济世医圣");
        cNameMaps.put(18,"济世医圣");

        gNameMaps.put(1,"运维实习生");
        gNameMaps.put(2,"运维实习生");
        gNameMaps.put(3,"运维实习生");
        gNameMaps.put(4,"初级运维工程师");
        gNameMaps.put(5,"初级运维工程师");
        gNameMaps.put(6,"初级运维工程师");
        gNameMaps.put(7,"中级运维工程师");
        gNameMaps.put(8,"中级运维工程师");
        gNameMaps.put(9,"中级运维工程师");
        gNameMaps.put(10,"高级运维工程师");
        gNameMaps.put(11,"高级运维工程师");
        gNameMaps.put(12,"高级运维工程师");
        gNameMaps.put(13,"运维技术经理");
        gNameMaps.put(14,"运维技术经理");
        gNameMaps.put(15,"运维技术经理");
        gNameMaps.put(16,"运维技术总监");
        gNameMaps.put(17,"运维技术总监");
        gNameMaps.put(18,"运维技术总监");

        for (int i = 1; i <= 18; i++) {

            CharacterConfigDO characterConfigDO = new CharacterConfigDO();
            int level = (i%3 == 0)? 3: i%3;

            characterConfigDO.setOrderId(i);
            characterConfigDO.setLevel(level);
            characterConfigDO.setCharacterCode("MS");
            characterConfigDO.setCharacterDes("牧师系，对应运维工程师");
            characterConfigDO.setStatus(1);
            characterConfigDO.setCharacterName(cNameMaps.get(i));
            characterConfigDO.setEngineerName(gNameMaps.get(i));
            characterConfigDO.setExp(1000l*i);
            characterConfigDO.setCharacterIcon("ms"+level);

            configList.add(characterConfigDO);
        }

        return configList;

    }

    /**
     * 剑士系职业初始化配置
     * @return
     */
    public List<CharacterConfigDO> getJsConfig(){

        List<CharacterConfigDO> configList = new ArrayList<>();

        Map<Integer,String> cNameMaps = new HashedMap();
        Map<Integer,String> gNameMaps = new HashedMap();

        cNameMaps.put(1,"剑士学徒");
        cNameMaps.put(2,"剑士学徒");
        cNameMaps.put(3,"剑士学徒");
        cNameMaps.put(4,"剑客");
        cNameMaps.put(5,"剑客");
        cNameMaps.put(6,"剑客");
        cNameMaps.put(7,"剑豪");
        cNameMaps.put(8,"剑豪");
        cNameMaps.put(9,"剑豪");
        cNameMaps.put(10,"剑圣");
        cNameMaps.put(11,"剑圣");
        cNameMaps.put(12,"剑圣");
        cNameMaps.put(13,"剑皇");
        cNameMaps.put(14,"剑皇");
        cNameMaps.put(15,"剑皇");
        cNameMaps.put(16,"剑神");
        cNameMaps.put(17,"剑神");
        cNameMaps.put(18,"剑神");

        gNameMaps.put(1,"全栈实习生");
        gNameMaps.put(2,"全栈实习生");
        gNameMaps.put(3,"全栈实习生");
        gNameMaps.put(4,"初级全栈工程师");
        gNameMaps.put(5,"初级全栈工程师");
        gNameMaps.put(6,"初级全栈工程师");
        gNameMaps.put(7,"中级全栈工程师");
        gNameMaps.put(8,"中级全栈工程师");
        gNameMaps.put(9,"中级全栈工程师");
        gNameMaps.put(10,"高级全栈工程师");
        gNameMaps.put(11,"高级全栈工程师");
        gNameMaps.put(12,"高级全栈工程师");
        gNameMaps.put(13,"架构师/研发总监");
        gNameMaps.put(14,"架构师/研发总监");
        gNameMaps.put(15,"架构师/研发总监");
        gNameMaps.put(16,"CTO/布道师");
        gNameMaps.put(17,"CTO/布道师");
        gNameMaps.put(18,"CTO/布道师");

        for (int i = 1; i <= 18; i++) {

            CharacterConfigDO characterConfigDO = new CharacterConfigDO();
            int level = (i%3 == 0)? 3: i%3;

            characterConfigDO.setOrderId(i);
            characterConfigDO.setLevel(level);
            characterConfigDO.setCharacterCode("JS");
            characterConfigDO.setCharacterDes("剑士系，对应全栈工程师");
            characterConfigDO.setStatus(1);
            characterConfigDO.setCharacterName(cNameMaps.get(i));
            characterConfigDO.setEngineerName(gNameMaps.get(i));
            characterConfigDO.setExp(1500l*i);//全栈经验值比其它职业要多
            characterConfigDO.setCharacterIcon("js"+level);

            configList.add(characterConfigDO);
        }

        return configList;

    }

    /**
     * 工匠职业初始化配置
     * @return
     */
    public List<CharacterConfigDO> getGjConfig(){

        List<CharacterConfigDO> configList = new ArrayList<>();

        Map<Integer,String> cNameMaps = new HashedMap();
        Map<Integer,String> gNameMaps = new HashedMap();
        cNameMaps.put(1,"矮人学徒");
        cNameMaps.put(2,"矮人学徒");
        cNameMaps.put(3,"矮人学徒");
        cNameMaps.put(4,"锻造工匠");
        cNameMaps.put(5,"锻造工匠");
        cNameMaps.put(6,"锻造工匠");
        cNameMaps.put(7,"能工巧匠");
        cNameMaps.put(8,"能工巧匠");
        cNameMaps.put(9,"能工巧匠");
        cNameMaps.put(10,"锻造大师");
        cNameMaps.put(11,"锻造大师");
        cNameMaps.put(12,"锻造大师");
        cNameMaps.put(13,"鬼斧神匠");
        cNameMaps.put(14,"鬼斧神匠");
        cNameMaps.put(15,"鬼斧神匠");
        cNameMaps.put(16,"巧夺天工");
        cNameMaps.put(17,"巧夺天工");
        cNameMaps.put(18,"巧夺天工");

        gNameMaps.put(1,"产品实习生");
        gNameMaps.put(2,"产品实习生");
        gNameMaps.put(3,"产品实习生");
        gNameMaps.put(4,"产品助理");
        gNameMaps.put(5,"产品助理");
        gNameMaps.put(6,"产品助理");
        gNameMaps.put(7,"产品专员");
        gNameMaps.put(8,"产品专员");
        gNameMaps.put(9,"产品专员");
        gNameMaps.put(10,"产品经理");
        gNameMaps.put(11,"产品经理");
        gNameMaps.put(12,"产品经理");
        gNameMaps.put(13,"产品专家");
        gNameMaps.put(14,"产品专家");
        gNameMaps.put(15,"产品专家");
        gNameMaps.put(16,"产品总监");
        gNameMaps.put(17,"产品总监");
        gNameMaps.put(18,"产品总监");


        for (int i = 1; i <= 18; i++) {

            CharacterConfigDO characterConfigDO = new CharacterConfigDO();
            int level = (i%3 == 0)? 3: i%3;

            characterConfigDO.setOrderId(i);
            characterConfigDO.setLevel(level);
            characterConfigDO.setCharacterCode("GJ");
            characterConfigDO.setCharacterDes("工匠系，对应产品工程师");
            characterConfigDO.setStatus(1);
            characterConfigDO.setCharacterName(cNameMaps.get(i));
            characterConfigDO.setEngineerName(gNameMaps.get(i));
            characterConfigDO.setExp(1500l*i);//产品职业获取经验值渠道更多，经验值需要增加
            characterConfigDO.setCharacterIcon("gj"+level);

            configList.add(characterConfigDO);
        }

        return configList;

    }

    /**
     * 召唤师职业初始化配置
     * @return
     */
    public List<CharacterConfigDO> getZhsConfig(){

        List<CharacterConfigDO> configList = new ArrayList<>();

        Map<Integer,String> cNameMaps = new HashedMap();
        Map<Integer,String> gNameMaps = new HashedMap();
        cNameMaps.put(1,"哥布林学徒");
        cNameMaps.put(2,"哥布林学徒");
        cNameMaps.put(3,"哥布林学徒");
        cNameMaps.put(4,"契约师");
        cNameMaps.put(5,"契约师");
        cNameMaps.put(6,"契约师");
        cNameMaps.put(7,"元素师");
        cNameMaps.put(8,"元素师");
        cNameMaps.put(9,"元素师");
        cNameMaps.put(10,"秘术师");
        cNameMaps.put(11,"秘术师");
        cNameMaps.put(12,"秘术师");
        cNameMaps.put(13,"幻术师");
        cNameMaps.put(14,"幻术师");
        cNameMaps.put(15,"幻术师");
        cNameMaps.put(16,"巫妖王");
        cNameMaps.put(17,"巫妖王");
        cNameMaps.put(18,"巫妖王");

        gNameMaps.put(1,"设计实习生");
        gNameMaps.put(2,"设计实习生");
        gNameMaps.put(3,"设计实习生");
        gNameMaps.put(4,"初级设计师");
        gNameMaps.put(5,"初级设计师");
        gNameMaps.put(6,"初级设计师");
        gNameMaps.put(7,"中级设计师");
        gNameMaps.put(8,"中级设计师");
        gNameMaps.put(9,"中级设计师");
        gNameMaps.put(10,"高级设计师");
        gNameMaps.put(11,"高级设计师");
        gNameMaps.put(12,"高级设计师");
        gNameMaps.put(13,"设计专家");
        gNameMaps.put(14,"设计专家");
        gNameMaps.put(15,"设计专家");
        gNameMaps.put(16,"设计总监");
        gNameMaps.put(17,"设计总监");
        gNameMaps.put(18,"设计总监");


        for (int i = 1; i <= 18; i++) {

            CharacterConfigDO characterConfigDO = new CharacterConfigDO();
            int level = (i%3 == 0)? 3: i%3;

            characterConfigDO.setOrderId(i);
            characterConfigDO.setLevel(level);
            characterConfigDO.setCharacterCode("ZHS");
            characterConfigDO.setCharacterDes("召唤系，对应设计工程师");
            characterConfigDO.setStatus(1);
            characterConfigDO.setCharacterName(cNameMaps.get(i));
            characterConfigDO.setEngineerName(gNameMaps.get(i));
            characterConfigDO.setExp(1000l*i);//设计师
            characterConfigDO.setCharacterIcon("ms"+level);

            configList.add(characterConfigDO);
        }

        return configList;

    }

    /**
     * 血族职业初始化
     * @return
     */
    public List<CharacterConfigDO> getXzConfig(){

        List<CharacterConfigDO> configList = new ArrayList<>();

        Map<Integer,String> cNameMaps = new HashedMap();
        Map<Integer,String> gNameMaps = new HashedMap();
        cNameMaps.put(1,"吸血鬼学徒");
        cNameMaps.put(2,"吸血鬼学徒");
        cNameMaps.put(3,"吸血鬼学徒");
        cNameMaps.put(4,"血族男爵");
        cNameMaps.put(5,"血族男爵");
        cNameMaps.put(6,"血族男爵");
        cNameMaps.put(7,"血族子爵");
        cNameMaps.put(8,"血族子爵");
        cNameMaps.put(9,"血族子爵");
        cNameMaps.put(10,"血族伯爵");
        cNameMaps.put(11,"血族伯爵");
        cNameMaps.put(12,"血族伯爵");
        cNameMaps.put(13,"血族侯爵");
        cNameMaps.put(14,"血族侯爵");
        cNameMaps.put(15,"血族侯爵");
        cNameMaps.put(16,"血族公爵");
        cNameMaps.put(17,"血族公爵");
        cNameMaps.put(18,"血族公爵");

        gNameMaps.put(1,"安全实习生");
        gNameMaps.put(2,"安全实习生");
        gNameMaps.put(3,"安全实习生");
        gNameMaps.put(4,"初级安全工程师");
        gNameMaps.put(5,"初级安全工程师");
        gNameMaps.put(6,"初级安全工程师");
        gNameMaps.put(7,"中级安全工程师");
        gNameMaps.put(8,"中级安全工程师");
        gNameMaps.put(9,"中级安全工程师");
        gNameMaps.put(10,"高级安全工程师");
        gNameMaps.put(11,"高级安全工程师");
        gNameMaps.put(12,"高级安全工程师");
        gNameMaps.put(13,"安全技术经理");
        gNameMaps.put(14,"安全技术经理");
        gNameMaps.put(15,"安全技术经理");
        gNameMaps.put(16,"安全技术总监");
        gNameMaps.put(17,"安全技术总监");
        gNameMaps.put(18,"安全技术总监");

        for (int i = 1; i <= 18; i++) {

            CharacterConfigDO characterConfigDO = new CharacterConfigDO();
            int level = (i%3 == 0)? 3: i%3;

            characterConfigDO.setOrderId(i);
            characterConfigDO.setLevel(level);
            characterConfigDO.setCharacterCode("XZ");
            characterConfigDO.setCharacterDes("血族系，对应安全工程师");
            characterConfigDO.setStatus(1);
            characterConfigDO.setCharacterName(cNameMaps.get(i));
            characterConfigDO.setEngineerName(gNameMaps.get(i));
            characterConfigDO.setExp(1000l*i);
            characterConfigDO.setCharacterIcon("xz"+level);

            configList.add(characterConfigDO);
        }

        return configList;

    }
}
